<?php 
header("content-type:text/html;charset=utf8");
$names = $_POST['names'];
$times = $_POST['times'];
$num = $_POST['num'];
$jiaoshi = $_POST['jiaoshi'];
$pdo = new PDO("mysql:host=127.0.0.1;dbname=07c","root","root");
$sql = "update xinxi set names='$names',times='$times',num='$num',jiaoshi='$jiaoshi'";
$res = $pdo->exec($sql);
if($res)
{
	echo "<script>alert('修改成功');location.href='show.php';</script>";
}
else
{
	echo "<script>alert('修改失败');location.href='show.php';</script>";
}


 ?>